import { BrowserModule } from "@angular/platform-browser";
import { NgModule } from "@angular/core";
//import { HttpClient } from '@angular/common/http';
//import { Observable, throwError } from 'rxjs';
//import { catchError, retry } from 'rxjs/operators';




import { AppRoutingModule } from "./app-routing.module";
import { AppComponent } from "./app.component";
import { ShopComponent } from "./shop/shop.component";
import { ShopService } from "./shop/shop.service";
import { Test02Component } from "./test02/test02.component";
import { Test03Component } from "./test03/test03.component";
import { Test04Component } from "./test04/test04.component";
import { Test05Component } from "./test05/test05.component";
import { Test06Component } from "./test06/test06.component";

//in memory server api
// import { HttpClientInMemoryWebApiModule } from "angular-in-memory-web-api";
// import { InMemoryDataService } from "./api/in-memory-data.service";

import { HttpClientModule } from "@angular/common/http";
import { Test07Component } from './test07/test07.component';
import { Test08Component } from './test08/test08.component';

@NgModule({
  declarations: [
    AppComponent,
    ShopComponent,
    Test02Component,
    Test03Component,
    Test04Component,
    Test05Component,
    Test06Component,
    Test07Component,
    Test08Component
  ],
  imports: [
    BrowserModule,
    AppRoutingModule,
    HttpClientModule
    // HttpClientInMemoryWebApiModule.forRoot(InMemoryDataService, {
    //   dataEncapsulation: false
    // })
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule {}
